package com.chillis.standings.tests.domain;

import android.test.AndroidTestCase;
import com.chillis.standings.domain.table.TableSettings;

import static com.chillis.standings.domain.table.TableSettings.Format;

public class TableSettingsTest extends AndroidTestCase {

   public void testAvailableFormats() throws Exception {
      String[] formats = TableSettings.availableFormats(getContext());
      assertEquals(formats.length, Format.values().length);

      for (int i = 0; i < formats.length; ++i) {
         Format format = Format.byIndex(getContext(), i);
         format.toString(getContext());
      }
   }

   public void testAvailableParticipantsCountsForRoundFormat() throws Exception {
      TableSettings.availableParticipantsCountsForRoundFormat();
   }

}
